 package com.cxl.pattern.observer;
 
 import java.io.PrintStream;
 import java.util.Observable;
 import java.util.Observer;
 
 public class NameObserver
   implements Observer
 {
   public void update(Observable arg0, Object arg1)
   {
     if ((arg1 instanceof String)) {
       String name = (String)arg1;
       System.out.println("NameObserver: name changet to" + name);
     }
   }
 }

/* Location:           E:\work\eclipse3.6_\workspace\design_pattern\
 * Qualified Name:     com.cxl.pattern.observer.NameObserver
 * JD-Core Version:    0.6.1
 */